<template>
  <div>
    <Table
      :tableSource="tableData.list"
      :tableTitle="tableData.userDbKey"
      :tablePow="tableData.power"
    ></Table>
  </div>
</template>

<script>
import { getUserList } from "../../api";
import { StorageName } from "../../config/localStorage";
import Table from "../../components/table";
export default {
  name: "discussesManage",
  components: { Table },
  data() {
    return {
      tableData: {},
    };
  },
  created: async function () {
    const { data } = await getUserList({
      token: this.$storage.getStorage(StorageName.Token),
    });
    this.tableData = data;
  },
};
</script>

<style lang="less" scoped>
</style>